-- GENERATED SPELL FOR [Khn'nix] --


function spell0_17866(pUnit, Event) --@Sporeskin,Self--
pUnit:FullCastSpellOnTarget(35230,pUnit)
pUnit:RegisterEvent('Sorts_17866', 642, 1)
end

function Sorts_17866(pUnit, Event)
local choix_sorts_17866 = math.random(0, 0)
if choix_sorts_17866 == 0 then
pUnit:RegisterEvent('spell0_17866', 1, 1)
end
end

function mob17866_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17866', math.random(1500, 3000), 1)
end

function mob17866_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17866_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17866_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17866, 1, 'mob17866_Action')
RegisterUnitEvent(17866, 2, 'mob17866_Leave')
RegisterUnitEvent(17866, 3, 'mob17866_Kill')
RegisterUnitEvent(17866, 4, 'mob17866_Die')
